<table id="myDetail" class = "listing" style="width: 100%; margin: 0 auto">
    <thead>
    <tr height = "40" class="myheaderrow">
        <th name="tkdu" id = "select" style="width: 10%">{$lTKDU}</th>
        <th name="macttkdu" id = "select" style="width: 10%" >Mã KH</th>
        <th name="diengiai" id = "input" style="width: 30%" >Di&#7877;n gi&#7843;i chi tiết</th>
        <th name="sotienvn" id = "input" style="width: 10%">Phát sinh</th>
        <th name="sotiennt" id = "input" style="width: 10%">Phát sinh ngoại tệ</th>
        <th name="tygiact" id = "input" style="width: 10%">Tỷ giá ghi sổ</th>
        <th name="soctcn" id = "input" style="width: 5%">Số c.từ công nợ gốc</th>
        <th name="ngayctcn" id = "input" style="width: 5%">Ngày c.từ công nợ gốc</th>
        <th name="macp" id = "input" style="width: 5%">Mã chi phí</th>
        <th name="BBB" align="right" style="width: 5%">{translate key="common.action"}</th>
    </tr>
    <tr >
    </tr>
    </thead>


    <tr class="mydatarow">
        <td class="value" style= "vertical-align: top;">
            <select name="tkdu" value="{$tkdu0}" id="tkdu-1" onclick="SetCur(this.id)"  onChange="changeMa(this.id, '{$urlS_getTenDMTK}');" class="selectMenu" style="width:100%; padding-bottom: 2px;">
                {html_options options=$matka selected=$tkdu0}
            </select>
            <div   class="selectMenu" style="font-size:13px" ></div>
        </td>
        <td class="value" style= "vertical-align: top;">
            <select  name="chitiettkdu-1" value="" id="chitiettkdu-1"  onclick="SetCur(this.id)" onChange="changeMaCTTK(this.id, '{$urlS_getTenDMDV}');" class="selectMenu" style="width:100%;padding-bottom: 2px;">
                {html_options options=$madva selected=""}
            </select>
            <div  class="selectMenu" style="font-size:13px" ></div>
        </td>
        <td valign="top" class="value" ><input type="text" name="diengiai" value="" id="diengiai"  style="width:99%" onclick="SetCur(this.id)"  class="textField" /></td>
        <td valign="top" class="value"><input type="text" name="sotienvn" style="width:98%;text-align:right" value="" id="sotienvn"  onclick="SetCur(this.id)" onblur="return validSoTienVN(this.value, this.id,1)" onkeypress="return isNumberKey(event)" class="textField" /></td>
        <td valign="top" class="value"><input type="text" name="sotiennt" value="" id="sotiennt" style="text-align:right;width:98%;"  onblur="validSoTienNT(this.value, this.id, 0)" onclick="SetCur(this.id)" onkeypress="return isNumberKey(event)" id="sotiennt-1" class="textField" /></td>
        <td valign="top" class="value" ><input type="text" name="tygia" value="" id="tygia"  style="width:98;%" onclick="SetCur(this.id)" onblur="validTyGia(this.value, this.id)" onkeypress="return isNumberKey(event)" class="textField" /></td>
        <td valign="top" class="value" ><input type="text" name="soctcn" value="" id="soctcn"  style="width:96%;" onclick="SetCur(this.id)"  class="textField" /></td>
        <td valign="top" class="value" ><input type="text" id="ngayctcn"  class="datepicker" style="width:96%;" onclick="SetCur(this.id)"  class="textField" /></td>
        <td valign="top" class="value" ><input type="text" name="macp" value="" id="macp"  style="width:97%;" onclick="SetCur(this.id)"  class="textField" /></td>
        <td valign="top" id = 'mytd'>
            <a class="actiondelrow" style="color: black;width:100%; padding-left: 5px"  id = "rowdel-1" href="javascript:void(0);" onclick="delerow(this.id,'myDetail',2,0,1);">X&#243;a d&#242;ng</a>
        </td>
    </tr>
</table>

{*
lllllllll
<table id="myTotal" width = "95%"  style = "margin: 0 auto">
    <tr height = "40" valign="center" >
        <td width = "70%" style = "font-weight: bold; text-align:left; vertical-align: left;"><label id = "total" style="color:Maroon;"></label>
        </td>
        <td width = "20%" align = "right">
            <a class="action" href="javascript:void(0);" onclick="addnewrow_add('myDetail');">+Th&#234;m d&#242;ng</a>
        </td>
        </td>
    </tr>
</table>
*}
